package com.monkeys.service.impl;

import com.monkeys.mapper.DemandsListMapper;
import com.monkeys.pojo.DemandsList;
import com.monkeys.service.DemandsListService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
/**
 * @author KuangTeam
 */
@Service
@RequiredArgsConstructor
public class DemandsListServiceImpl implements DemandsListService {

    private final DemandsListMapper demandsListMapper;

    //插入数据
    @Override
    public void insert(DemandsList demandsList) {
        demandsListMapper.insert(demandsList);
    }



    //删除全部信息
    @Override
    public void deleteAll() {
        demandsListMapper.deleteAll();
    }


    //根据id获取
    @Override
    public DemandsList getById(Long demandsListId) {
        return demandsListMapper.selectById(demandsListId);
    }
}
